﻿<%@ Page Language="C#" MasterPageFile="~/FrameMasterPage.master" AutoEventWireup="true" CodeFile="ActionTakenAddNew.aspx.cs" Inherits="ActionTakenAddNew" Title="Untitled Page" %>
<%@ Register Assembly="EclipseWebSolutions.DatePicker" Namespace="EclipseWebSolutions.DatePicker"
    TagPrefix="ews" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="m_contentBody" Runat="Server">
<table>
    <tr>
        <td>
            <asp:Label ID="lblWorkOrderId" runat="server"  Text="WorkOrder ID" ></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtWorkorderId" runat="server"  Text="" ></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label1" runat="server"  Text="Task ID" ></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtTaskID" runat="server"  Text="" ></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label2" runat="server"  Text="Planning ID" ></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtPlanningID" runat="server"  Text="" ></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label3" runat="server"  Text="Equipment ID" ></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtEquipmentID" runat="server"  Text="" ></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label4" runat="server"  Text="Start Date (mm/dd/yyyy)" ></asp:Label>
        </td>
        <td>
        <%-- <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                        <ContentTemplate>
                                            <ews:DatePicker ID="txtStartDate" runat="server" DateFormatString="MM/dd/yyyy"  
                                                 />    
                                </ContentTemplate>
          </asp:UpdatePanel>--%>
           <asp:TextBox ID="txtStartDate" runat="server" Width="76px"></asp:TextBox>
            <asp:Image ID="imgCalendar" runat="server" ImageUrl="~/images/calendar.png" />
            <cc2:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtStartDate" PopupButtonID="imgCalendar">
            </cc2:CalendarExtender> 
       </td>        
    </tr>   
    <tr>
        <td>
            <asp:Label ID="Label5" runat="server"  Text="Start Date (mm/dd/yyyy)" ></asp:Label>
        </td>
        <td>
        <%-- <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                        <ContentTemplate>
                                            <ews:DatePicker ID="txtEndDate" runat="server" DateFormatString="MM/dd/yyyy"  
                                                 />    
                                </ContentTemplate>
          </asp:UpdatePanel>--%>
           <asp:TextBox ID="txtEndDate" runat="server" Width="76px"></asp:TextBox>
            <asp:Image ID="Image1" runat="server" ImageUrl="~/images/calendar.png" />
            <cc2:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtEndDate" PopupButtonID="Image1">
            </cc2:CalendarExtender> 
       </td>        
    </tr>  
    
     <tr>
        <td>
            <asp:Label ID="Label6" runat="server"  Text="Total Time" ></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtTotaltime" runat="server"  Text="" ></asp:TextBox>
        </td>
    </tr> 
     <tr>
        <td>
            <asp:Label ID="Label7" runat="server"  Text="Cost per repairation" ></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtCostPerRepairation" runat="server"  Text="" ></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label8" runat="server"  Text="Status" ></asp:Label>
        </td>
        <td>
           <asp:DropDownList ID="drlTaskStatus" runat="server"  Width="187px"  Height ="23px"

                 AppendDataBoundItems="True" DataSourceID="dsTaskStatus" 
                 DataTextField="TaskStatusLabel" DataValueField="TaskStatusId" >
              <asp:ListItem Value="-1">--- Choose Category ---</asp:ListItem>
    
         </asp:DropDownList>
             
             <asp:ObjectDataSource ID="dsTaskStatus" runat="server" SelectMethod="GetTaskStatus" 
                 TypeName="Service.ReferenceDataServiceActionTaken" 
                 OldValuesParameterFormatString="" ConvertNullToDBNull="True">
             </asp:ObjectDataSource>
        </td>
    </tr>
    
     <tr>
        
        <td style="text-align:left" >
            <asp:Label ID="Label9" runat="server"  Text="New status is here:" ></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtNewStatus" runat="server"  Text="" ></asp:TextBox>
        
           <asp:Button CssClass="btnexpress" BorderStyle="Dotted"  ID="btnAddNewStatus" runat ="server" Text="Add" 
                onclick="btnAddNewStatus_Click" /></asp:Button>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label" runat="server" Text ="Description" ></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtDescription" runat="server" Text="" TextMode="MultiLine"></asp:TextBox>
        </td>
    </tr>
     <tr>
        <td>
            <asp:Label ID="Label10" runat="server" Text ="Check here if this equipment is demaged" ></asp:Label>
        </td>
       <td>
            <asp:CheckBox ID="chbDemage" runat ="server" Text="" ></asp:CheckBox >
       </td>
    </tr>
    <tr>
       <td>
       </td>
       <td>
            <asp:Button  CssClass="btnexpress" BorderStyle="Dotted" ID="btnSave" runat="server"  Text="Save" onclick="btnSave_Click" ></asp:Button > 
            <input type="button"  class="btnexpress" onclick="javascript:OpenPopupWindow('configuration.aspx')" />
            <asp:Button   CssClass="btnexpress" BorderStyle="Dotted" ID="btnAddSparePart" 
                runat ="server" Text="Add spare part" onclick="btnAddSparePart_Click" ></asp:Button>
            <asp:Button   CssClass="btnexpress" BorderStyle="Dotted" ID="btnCancel" runat ="server" Text="Cancel" ></asp:Button>
           
           
            
        </td>
         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </tr>
    <tr style="height:30px">
        <td>
        </td>
       
   
    </tr>
    <tr>
        <td>
        </td>
        <td><strong>
        <asp:Label ID="lblsparepartEquipment" runat ="server" Text ="The list of spare part in this equipment"></asp:Label>
        </strong>
        </td>
    </tr>
   
</table>


</asp:Content>

